﻿<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
  <!ENTITY nbsp "&#x00A0;">
]>
<xsl:stylesheet version="1.0"
				xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
				xmlns:asp="http://schemas.microsoft.com/AspNet/WebControls"
        xmlns:lsc="urn:landscape-xsl"
        xmlns:lsc.ext="urn:landscape"
        exclude-result-prefixes="xsl asp lsc lsc.ext">

  <xsl:include href="common.xslt!"/>
  <xsl:include href="common.xslt"/>

  <xsl:template match="/" lsc:wrapper="Wrappers/NestedTemplatesLayout">
    <h1>Landscape Presentation Framework - Smart Includes</h1>
    <p>This page is an example of how you can use global include folders.</p>
    <p>Since Landscape features template folder lookup priority, it could happen that you cannot determine exactly the base URI of a template.</p>
    <p>In this case, using the <b>!</b> suffix while defining the @href attribute for an xsl:include or xsl:import, you can tell the library to lookup for a file in the configured include folders.</p>
    <p>Example: <b>&lt;xsl:include href="common.xslt!"/&gt;</b> will look for common.xslt in the folder defined into Web.Config landscapeIncludes
    &lt;landscapeIncludes/&gt; section, while <b>&lt;xsl:include href="common.xslt"/&gt;</b> in the current folder.</p>
    <br/>
    <xsl:call-template name="templateFromSmartIncludeFolder"/>
    <xsl:call-template name="templateFromBaseFolder"/>
  </xsl:template>
</xsl:stylesheet>